package com.ruoyi.project.cropmanage.entity;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * huzhonghua
 * 种植地图
 * 2020/2/10
 * 11:38
 */
public class CropMap  extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Excel(name = "序号", cellType = Excel.ColumnType.NUMERIC)
    private Long cropId;
    /**县区*/
    @Excel(name = "县区")
    private String cityName;
    /**林业局、农场*/
    @Excel(name = "林业局、农场")
    private String townName;
    /**农户、合作社*/
    @Excel(name = "农户、合作社")
    private String custName;
    /**详细地址*/
    @Excel(name = "详细地址")
    private String address;
    /**联系电话*/
    @Excel(name = "联系电话")
    private String linkPhone;



    /** 作物名称 */
    @NotBlank(message = "作物名称不能为空")
    @Size(min = 0, max = 64, message = "作物名称长度不能超过64个字符")
    @Excel(name = "作物名称")
    private String cropName;
    /** 种植面积 */
    @NotNull(message = "种植面积不能为空")
    @Excel(name = "种植面积")
    private Double mianji;
    /** 分类1 */
    @Excel(name = "作物分类")
    private String sort1;
    /** 分类2 */
    @Excel(name = "生长周期")
    private String sort2;
    /** 经度 */
    @NotBlank(message = "经度不能为空")
    @Excel(name = "经度")
    private String lng;
    /** 纬度 */
    @NotBlank(message = "纬度不能为空")
    @Excel(name = "纬度")
    private String lat;
    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "1=正常,0=停用")
    private String status;
    @Excel(name = "备注")
    private String  remark;
    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }


    public Long getCropId() {
        return cropId;
    }

    public void setCropId(Long cropId) {
        this.cropId = cropId;
    }

    public String getCropName() {
        return cropName;
    }

    public void setCropName(String cropName) {
        this.cropName = cropName;
    }

    public Double getMianji() {
        return mianji;
    }

    public void setMianji(Double mianji) {
        this.mianji = mianji;
    }

    public String getSort1() {
        return sort1;
    }

    public void setSort1(String sort1) {
        this.sort1 = sort1;
    }

    public String getSort2() {
        return sort2;
    }

    public void setSort2(String sort2) {
        this.sort2 = sort2;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getTownName() {
        return townName;
    }

    public void setTownName(String townName) {
        this.townName = townName;
    }

    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }

}
